package com.lile.character;

/*
 * Character 类在对象中包装一个基本类型 char 的值,此外，该类提供了几种方法，以确定字符的类别（小写字母，数字，等等），并将字符从大写转换成小写，反之亦然
 */
public class CharacterDemo {

	public static void main(String[] args) {
		// 构造方法
		// Character(char value)
		Character ch = new Character('a');
		System.out.println(ch);

		// public static boolean isUpperCase(char ch)
		System.out.println(Character.isUpperCase('a'));
		System.out.println(Character.isUpperCase('A'));
		System.out.println(Character.isUpperCase('0'));
		// public static boolean isLowerCase(char ch)
		System.out.println(Character.isLowerCase('a'));
		System.out.println(Character.isLowerCase('A'));
		System.out.println(Character.isLowerCase('0'));
		// public static boolean isDigit(char ch)
		System.out.println(Character.isDigit('a'));
		System.out.println(Character.isDigit('A'));
		System.out.println(Character.isDigit('0'));
		// public static char toUpperCase(char ch)
		System.out.println(Character.toUpperCase('a'));
		System.out.println(Character.toUpperCase('A'));
		// public static char toLowerCase(char ch)
		System.out.println(Character.toLowerCase('a'));
		System.out.println(Character.toLowerCase('A'));
	}

}
